package cn.jx.asc.service;

import cn.jx.asc.pojo.entity.Threshold;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lhg
 * @since 2021-06-28
 */
public interface ThresholdService extends IService<Threshold> {

    /**
     * 更新阈值
     * @param threshold 阈值对象
     * @return boolean
     */
    boolean updateThreshold(Threshold threshold);

    /**
     * 根据id查询阈值
     * @param id 阈值模板id
     * @return Threshold 阈值对象
     */
    Threshold queryThreshold(Integer id);
}
